package tinycloud.gui.action;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import tinycloud.gui.dialog.AboutDialog;

/**
 * Quand on clique sur annuler on ferme seulement la fenêtre.
 * @author Nicolas CHARREL
 */
public class CloseAboutDialogAction extends AbstractAction {

    private AboutDialog dialog;
    
    public CloseAboutDialogAction(AboutDialog dialog) {
        this.dialog = dialog;
    }
    
    public void actionPerformed(ActionEvent e) {
        dialog.dispose();
    }

}
